public class InterfaceTest {
    public static void main(String[] args) {
        SimCard sc = new SimCard();
        sc.setUsername("wuhf");
        sc.setNumber(1860000);
        sc.setBalance(99991);

        // 多态引用通话接口实例
        CallPackageInterface cf = new CallPackage();
        cf.callInfo(561,sc);
        System.out.println("------------------------------");
        // 多态引用上网接口实例
        SurfPackageInterface sf = new SurfPackage();
        sf.surfInfo(1024,sc);
    }
}
